package com.knshare.utils.Executor;
import java.util.concurrent.RejectedExecutionHandler;
import java.util.concurrent.ThreadPoolExecutor;

/**
 * @author rongxun.wu01
 * @product IntelliJ IDEA
 * @project KnShare
 * @Date 2023-05-06 13:48
 */
public class RejectedExecutionHandlerDefault  implements RejectedExecutionHandler {

    @Override
    public void rejectedExecution(Runnable r, ThreadPoolExecutor executor) {
        System.out.println("线程池已满： "+executor.toString());
    }
}
